Skip to content

Conversation

@jba
Copy link
Contributor

@jba jba commented Jul 7, 2025

Struct fields may have the "jsonschema" struct tag, which is used as the description of the property.

Fixes #47.

@jba jba requested review from findleyr and samthanawalla July 7, 2025 18:58
@tiborvass
Copy link

For what it's worth I resolved the conflicts here: https://github.com/tiborvass/mcp-go-sdk/pull/new/js-struct-tag

@jba jba force-pushed the js-struct-tag branch from acf5aa8 to 8334f82 Compare July 10, 2025 15:46
@jba
Copy link
Contributor Author

jba commented Jul 10, 2025

@tiborvass Thanks. I wasn't sure how to use your commit so I just changed my local copy and pushed.

@tiborvass
Copy link

Thank you! Just a priority feedback: this PR is what makes the SDK finally usable for me!

@samthanawalla samthanawalla merged commit 2c577e5 into modelcontextprotocol:main Jul 10, 2025
3 checks passed
@jba
Copy link
Contributor Author

jba commented Jul 10, 2025

@tiborvass We fast-tracked this for you :)

@tiborvass
Copy link

Thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support setting field descriptions using struct tags

3 participants